<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            position: relative;
            height: 200px;
            width: 200px;
            background-color: #f00;
            /* transform: translate(200px, 60px); */
        }

        p {
            margin: 0;
            position: absolute;
            top: 50%;
            left: 50%;
            height: 50px;
            width: 50px;
            background-color: #ff0;
            transform: translate(-50%, -50%);
        }

        .box_1 {
            background-color: #f77;
            height: 100px;
            width: 180px;
            border-radius: 50%;
            transition: all .6s ease 2s;
        }

        .box_1:hover {
            transform: rotate(40deg);

        }

        .box_2 {
            width: 200px;
            height: 200px;
            background-color: #ff0000;
            margin: auto;
            /* transform-origin: left bottom; */
            transition: all .6s;
            transform-origin: 30% 60%;
        }

        .box_2:hover {

            transform: rotate(360deg);
        }

        .box_3 {
            border: 1px solid #333;
            overflow: hidden;
            width: 400px;
            height: 100px;
            margin: 30px auto;

        }

        .box_3 img {
            width: 100%;
            height: 100%;
        }

        .box_3:hover img {

            transform: scale(1.1);
        }

    </style>
</head>

<body>
    <div class="box">
        <p></p>
    </div>
    <div class="box_1">

    </div>
    <div class="box_2">

    </div>
    <!-- 放大和缩小 -->
    <div class="box_3">
        <img src="img/logo.png" alt="">
    </div>
    <div class="box_4">

    </div>
</body>

</html>